﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FillTable.aspx.cs" Inherits="ZhaoPin.Feature.FillTable" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        var GB_ROOT_DIR = '<%=ResolveUrl("~/Scripts/greybox/")%>';
        function PhotoUploadStart(sender, args) {

        }
        function PhotoUploadFinish(sender, args) {
            var jpeg = args.get_contentType().indexOf("jpeg");
            if (jpeg < 0) {
                alert("照片格式不正确！请重新选择照片");
            }
            if (args.get_length() > 81920) {
                alert("照片文件过大！请重新选择照片")
            }
            document.all.MainContent_imagePhoto.src = "ShowPhoto.aspx?id=" + Math.random();
        }
        function Show(page_url) {
            window.showModalDialog(page_url, "", 'dialogWidth:500px;dialogHeight:500px;status:no;help:no;resizable:no');
        }
    </script>
    <script type="text/javascript" src="../Scripts/greybox/AJS.js"></script>
    <script type="text/javascript" src="../Scripts/greybox/AJS_fx.js"></script>
    <script type="text/javascript" src="../Scripts/greybox/gb_scripts.js" charset="gb2312"></script>
    <link href="../Scripts/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(RefreshStories);
        function RefreshStories() {
            $.get("GetEduStory.aspx?id=" + Math.random(), function (result) {
                $("#MainContent_taes").val(result);
            });
            $.get("GetWorkStory.aspx?id=" + Math.random(), function (result) {
                $("#taws").val(result);
            });
            $.get("GetHousehold.aspx?id=" + Math.random(), function (result) {
                $("#tahh").val(result);
            });
        }
        function GB_showCallback() {
            RefreshStories();
        }
    </script>
    <style type="text/css">
        .err
        {
            color: Red;
        }
        .colPhoto
        {
            text-align:center;
            vertical-align:middle;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </ajaxToolkit:ToolkitScriptManager>
    <div align="center" style="padding-left: 0px" id="fill">
        <div style="padding-bottom:10px"><asp:Label runat="server" ID="lbInfo" Text="" CssClass="attention"></asp:Label></div>
        <div style="padding-bottom: 5px; font-size: 15pt; color: #000000; font-family: 黑体">
            青岛西海岸医疗中心（青岛大学医学院附属医院黄岛分院）</div>
        <div style="padding-bottom: 5px; font-size: 15pt; color: #000000; font-family: 黑体">
            2011年第一次公开招聘报名表</div>
        <div style="padding-bottom: 5px; color: #ff0000">
            请详细填写下列信息，带有 * 的必须填写。如未成功请检查带有 * 符号的项目是否填写正确！</div>
        <table border="1" cellpadding="1" cellspacing="0" style="text-align: left" width="750px">
            <tr>
                <td colspan="2">
                    姓名*<asp:TextBox ID="tbRealName" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    性别*
                    <asp:DropDownList ID="ddGenderCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddGenderCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td>
                    民族*
                    <asp:DropDownList ID="ddNationCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddNationCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td rowspan="4" class="colPhoto">
                    <asp:Image ID="imagePhoto" runat="server" AlternateText="请选择上传的照片，格式为jpg，大小不能超过80k 宽度为114像素高度为153像素或长宽比为1.34:1"
                        Style="height: 3.6cm; width: 2.6cm; border-width: 0px; text-align: center; font: smallcaption;
                        color: black;" ImageUrl="~/Feature/ShowPhoto.aspx" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    婚否*<asp:DropDownList ID="ddMarriageCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddMarriageCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td colspan="2">
                    政治面貌*<asp:DropDownList ID="ddPartyCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddPartyCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    出生年月*
                    <asp:TextBox ID="tbBirthday" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox>
                </td>
                <td colspan="2">
                    身份证号码*<asp:TextBox ID="tbIdentityCardNumber" runat="server" ReadOnly="true" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    参加工作时间
                    <asp:TextBox ID="tbFirstJobDate" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="calFirstJobDate" TargetControlID="tbFirstJobDate"
                        runat="server" Format="yyyy-MM" DefaultView="Years">
                    </ajaxToolkit:CalendarExtender>
                </td>
                <td colspan="2">
                    工作单位
                    <asp:TextBox ID="tbFirstJobCompany" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    身高*<asp:TextBox ID="tbHeight" runat="server"></asp:TextBox>cm
                    <asp:RangeValidator ID="RangeValidator1" runat="server" Type="Integer" MaximumValue="300"
                        MinimumValue="50" Text="!" ErrorMessage="50-300" ControlToValidate="tbHeight"
                        CssClass="err"></asp:RangeValidator>
                </td>
                <td colspan="2">
                    户籍所在地*<asp:TextBox ID="tbCityNow" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbCityNow"
                        CssClass="err" Text="!" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <ajaxToolkit:AsyncFileUpload ID="fuPhoto" runat="server" OnClientUploadStarted="PhotoUploadStart"
                        OnClientUploadComplete="PhotoUploadFinish" ThrobberID="photoThrobber" Width="30px"
                        EnableTheming="True" OnUploadedComplete="fuPhoto_UploadedComplete" />
                    <asp:Image ID="photoThrobber" runat="server" Style="display: none" ImageUrl="~/Images/uploading.gif" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    工作年限*<asp:TextBox ID="tbWorkedYears" runat="server"></asp:TextBox>年
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="0-99" Text="!"
                        CssClass="err" ControlToValidate="tbWorkedYears" MinimumValue="0" MaximumValue="99"
                        Type="Integer"></asp:RangeValidator>
                </td>
                <td colspan="1">
                    考生类别*<asp:DropDownList ID="ddStudentCatalogCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddStudentCatalogCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td colspan="2">
                    常用联系电话*<asp:TextBox ID="tbPhoneNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="tbPhoneNumber"
                        CssClass="err" Text="!" Display="Static"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    研究方向<asp:TextBox ID="tbStudyDirection" runat="server"></asp:TextBox>
                </td>
                <td colspan="2">
                    导师<asp:TextBox ID="tbTutor" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">
                    岗位等级*<asp:DropDownList ID="ddPostGradeCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddPostGradeCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td colspan="2">
                    报考岗位*<asp:DropDownList ID="ddPostCode" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddPostCode"
                        CssClass="err" Text="!" InitialValue="99999999" Display="Static"></asp:RequiredFieldValidator>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="4">
                    职称资格*<asp:DropDownList ID="ddProfessionalRankCode" runat="server">
                    </asp:DropDownList>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    学习经历*<asp:RequiredFieldValidator
                        ID="RequiredFieldValidator5" runat="server" ControlToValidate="taes" 
                        CssClass="err" ErrorMessage="必须填写"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <textarea id="taes" style="overflow: auto; border: 0" rows="8" cols="76" readonly="readonly" runat="server"></textarea>

                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <input id="btnShowEduStory" type="button" value="点击此处录入学习经历" onclick="return GB_showCenter('学习经历编辑', '/ZhaoPin/Feature/EduStoryPage.aspx',550,780,GB_showCallback)" />
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    工作经历
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <textarea id="taws" style="overflow: auto; border: 0" rows="5" cols="76" readonly="readonly"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <input id="btnShowWorkStory" type="button" value="点击此处录入工作经历" onclick="return GB_showCenter('工作经历编辑', '/ZhaoPin/Feature/WorkStoryPage.aspx',550,780,GB_showCallback)" />
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    家庭成员及主要社会关系
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <textarea id="tahh" style="overflow: auto; border: 0" rows="6" cols="76" readonly="readonly"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <input id="btnShowHousehold" type="button" value="点击此处录入家庭成员及主要社会关系" onclick="return GB_showCenter('家庭成员及主要社会关系编辑', '/ZhaoPin/Feature/HouseholdPage.aspx',550,780,GB_showCallback)" />
                </td>
            </tr>
        </table>
    </div>
    <div style="padding-top: 10px" align="center">
        <asp:Button ID="btnSubmit" runat="server" Text="确认无误并提交更改" OnClick="btnSubmit_Click" />
    </div>
</asp:Content>
